﻿<!DOCTYPE HTML>
{% load static %}
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <!--[if lt IE 9]>
<script type="text/javascript" src="http://libs.useso.com/js/html5shiv/3.7/html5shiv.min.js"></script>
<script type="text/javascript" src="http://libs.useso.com/js/respond.js/1.4.2/respond.min.js"></script>
<script type="text/javascript" src="http://cdn.bootcss.com/css3pie/2.0beta1/PIE_IE678.js"></script>
<![endif]-->
    <link type="text/css" rel="stylesheet" href="{% static 'h-ui/css/H-ui.cs' %}s"/>
    <link type="text/css" rel="stylesheet" href="{% static 'h-ui.admin/css/H-ui.admin.css' %}"/>
    {#<link type="text/css" rel="stylesheet" href="{% static 'new_admin/font/font-awesome.min.css' %}"/>#}
    <!--[if IE 7]>
<link href="http://www.bootcss.com/p/font-awesome/assets/css/font-awesome-ie7.min.css" rel="stylesheet" type="text/css" />
<![endif]-->
    <title>修改密码</title>
</head>
<body>
<div class="pd-20">
    <form class="Huiform" id="loginform" action="{% url 'new_admin:admin_pwd_edit' %}" method="post" target="_parent">
        <table class="table table-border table-bordered table-bg">
            {% csrf_token %}
            <tbody>
            <input type="hidden" name="id" value="{{ request.user.id }}">
                <tr>
                    <th class="text-r">新密码：</th>
                    <td><input name="newpassword" id="newpassword" class="input-text" type="password" -autocomplete="off" placeholder="" tabindex="2" datatype="*6-16"  nullmsg="请输入您的新密码！" errormsg="4~16个字符，区分大小写！">
                    </td>
                </tr>
                <tr>
                    <th class="text-r">再次输入新密码：</th>
                    <td><input name="newpassword2" id="newpassword2" class="input-text" type="password" -autocomplete="off" placeholder="" tabindex="3" datatype="*" recheck="newpassword" nullmsg="请再输入一次新密码！" errormsg="您两次输入的新密码不一致！">
                    </td>
                </tr>
                <tr>
                    <th></th>
                    <td>
                        <button type="submit" class="btn btn-success radius" id="admin-password-save" name="admin-password-save"><i class="icon-ok"></i> 确定</button>
                    </td>
                </tr>
            </tbody>
        </table>
    </form>
</div>
<script type="text/javascript" src="{% static 'new_admin/js/https _cdn.bootcss.com_jquery_2.1.3_jquery.min.js' %}"></script>
<script type="text/javascript" src="{% static 'new_admin/js/Validform_v5.3.2_min.js' %}"></script>
<script type="text/javascript" src="{% static 'lib/layer/layer.min.js' %}"></script>
<script type="text/javascript" src="{% static 'h-ui/js/H-ui.js' %}"></script>
<script type="text/javascript" src="{% static 'h-ui.admin/js/H-ui.admin.js' %}"></script>
<script type="text/javascript">
    {% if msg %}
            $.Huimodalalert('{{ msg }}', 1000);
    {% endif %}
    $(".Huiform").Validform();
</script>
<script>
    var _hmt = _hmt || [];
    (function() {
        var hm = document.createElement("script");
        hm.src = "//hm.baidu.com/hm.js?080836300300be57b7f34f4b3e97d911";
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(hm, s);
    })();
    var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
    document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F080836300300be57b7f34f4b3e97d911' type='text/javascript'%3E%3C/script%3E"));
</script>
</body>
</html>